﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using Volo.Abp.Domain.Repositories;

namespace Mozhi.Abp.Module.DataLinkage
{
    public interface IDataLinkageRepository : IRepository<DataLinkage , Guid>
    {
        Task<int> GetCountAsync(string keyword, Guid? providerId, Guid? consumerId, CancellationToken cancellationToken = default(CancellationToken));

        Task<List<DataLinkage>> GetListAsync(string keyword, Guid? providerId, Guid? consumerId, CancellationToken cancellationToken = default(CancellationToken));

        Task<List<DataLinkage>> GetPagedListAsync(string keyword, Guid? providerId, Guid? consumerId, int skipCount, int maxResultCount, string sorting, bool includeDetails = false, CancellationToken cancellationToken = default);
    }
}
